mocha.describe(ꞌCheck 2+2ꞌ)   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
c 1
b 0
f 0
nc 1
dl 0
loc 5
ccs 3
cts 3
cp 1
crap 1
rs 9.4285
nop 0
1
"use strict";
2
3 1
const mocha = require('mocha');
4 1
const assert = require("assert");
5
6
7 1
mocha.describe("Check 2+2", function() {
8 1
    mocha.it("it should be 4", function() {
9 1
        let res = 2+2;
10
11 1
        assert.equal(res, 4);
12
    });
13
});
14